﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Vds2465Telegrams
{
	public class UserData_02_StatusChangeReport2Confirm : UserData_Report
	{
		#region constructor

		public UserData_02_StatusChangeReport2Confirm(byte device, byte address, byte addressAddOn, eAddressExtension_1 addressExtension, ReportType_Base reportTypeBase)
			: base(UserData.UserData02StatusChangeReport2Confirm, device, address, addressAddOn, addressExtension, reportTypeBase)
		{

		}

		#endregion constructor

		#region ToString, Equals, GetHashCode

		public override int GetHashCode()
		{
			int hashCode = base.GetHashCode();
			return hashCode;
		}

		public override string ToString()
		{
			StringBuilder stringBuilder = new StringBuilder();
			stringBuilder.Append("(");
			stringBuilder.Append(ToStringProperties());
			stringBuilder.Append(")");

			return stringBuilder.ToString();
		}

		internal override string ToStringProperties()
		{
			StringBuilder stringBuilder = new StringBuilder();
			stringBuilder.Append(base.ToStringProperties());
			
			return stringBuilder.ToString();
		}

		public override bool Equals(object obj)
		{
			Type objType = obj.GetType();
			if (this.GetType() == objType)
			{
				UserData_02_StatusChangeReport2Confirm userData2Compare = obj as UserData_02_StatusChangeReport2Confirm;
				return EqualsProperties(userData2Compare);
			}

			return false;
		}

		internal bool EqualsProperties(UserData_02_StatusChangeReport2Confirm userData2Compare)
		{
			return (base.EqualsProperties(userData2Compare));			
		}

		#endregion ToString, Equals, GetHashCode
	}
}
